﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: UserMessageEntity.cs
// 修改时间：2020-9-8 10:40:13
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：UserMessage 的实体类.
	/// </summary>
	[Table("UserMessage")]
	public partial class UserMessageEntity
	{
		#region Properties
		private int? _messageID = 0;
		/// <summary>
		/// 短消息Id(主键)(自增长)
		/// </summary>
		[Column("MessageID",TypeName="int")]
		[Key]
		[MyFlag("Identity")]
		public int? MessageID
		{
			get {return _messageID;}
			set {_messageID = value;}
		}
		
		private System.String _title = string.Empty;
		/// <summary>
		/// 标题
		/// </summary>
		[Column("Title",TypeName="nvarchar(100)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Title
		{
			get {return _title;}
			set {_title = value;}
		}
		
		private System.String _content = string.Empty;
		/// <summary>
		/// 内容
		/// </summary>
		[Column("Content",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Content
		{
			get {return _content;}
			set {_content = value;}
		}
		
		private System.String _sender = string.Empty;
		/// <summary>
		/// 发件人
		/// </summary>
		[Column("Sender",TypeName="nvarchar(20)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Sender
		{
			get {return _sender;}
			set {_sender = value;}
		}
		
		private System.String _incept = string.Empty;
		/// <summary>
		/// 收件人
		/// </summary>
		[Column("Incept",TypeName="nvarchar(20)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Incept
		{
			get {return _incept;}
			set {_incept = value;}
		}
		
		private DateTime? _sendTime = null;
		/// <summary>
		/// 发送日期
		/// </summary>
		[Column("SendTime",TypeName="datetime")]
		public DateTime? SendTime
		{
			get {return _sendTime;}
			set {_sendTime = value;}
		}
		
		private int? _isSend = 0;
		/// <summary>
		/// 是否被发送，0为没发送，1为被发送
		/// </summary>
		[Column("IsSend",TypeName="int")]
		public int? IsSend
		{
			get {return _isSend;}
			set {_isSend = value;}
		}
		
		private int? _isDelInbox = 0;
		/// <summary>
		/// 收件箱中信息的删除标记，0为未删除，1为已删除
		/// </summary>
		[Column("IsDelInbox",TypeName="int")]
		public int? IsDelInbox
		{
			get {return _isDelInbox;}
			set {_isDelInbox = value;}
		}
		
		private int? _isDelSendbox = 0;
		/// <summary>
		/// 发件箱中信息的删除标记，0为未删除，1为已删除
		/// </summary>
		[Column("IsDelSendbox",TypeName="int")]
		public int? IsDelSendbox
		{
			get {return _isDelSendbox;}
			set {_isDelSendbox = value;}
		}
		
		private int? _isRead = 0;
		/// <summary>
		/// 短消息状态，0为未读，1为已读
		/// </summary>
		[Column("IsRead",TypeName="int")]
		public int? IsRead
		{
			get {return _isRead;}
			set {_isRead = value;}
		}
		
		#endregion
	}
}
